package org.halo.trade.data.sina;


public class Level2_HangyeZJLXNetInfo
{
	public double[] net_mf = new double[4];
	public double sum;
	public double pricePercent;
	public String name;

	public String category;

	public double getMainNetIn()
	{
		double main_net_in = net_mf[0] + net_mf[1];
		return main_net_in;
	}

	public double getMainNetInRate()
	{

		return getMainNetIn() / sum;
	}

	public void print()
	{
		System.out.println("===============================");
		System.out.println(name + " " + category);
		System.out.println("净流入：");
		for (int j = 0; j < 4; j++)
		{
			System.out.print(net_mf[j] + "\t");
		}
		System.out.println();
		for (int j = 0; j < 4; j++)
		{
			System.out.print(Utils.doubleToString(net_mf[j] * 100.0 / sum, 2) + "%\t");
		}
		System.out.println();

	}

}
